package com.example.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Repository
public interface YhMapper {
    @Update("update yh set ye=ye-#{ye} where name=#{name}")
    void updateJq(@Param("name") String name,@Param("ye") Double ye);
    @Update("update yh set ye =ye+#{ye}  where name=#{name}")
    void updateZq(@Param("name") String name,@Param("ye") Double ye);
}
